//
//  MenuManager.m
//  village_ios
//
//  Created by mac on 2019/8/6.
//  Copyright © 2019 com.sw.village. All rights reserved.
//

#import "SettingManager.h"
#import "FileManager.h"

@implementation SettingManager

+ (instancetype)sharedInstance
{
    static SettingManager *sharedManager;
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        sharedManager = [[SettingManager alloc] init];
    });
    
    return sharedManager;
}
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.dict = [NSMutableDictionary dictionary];
        self.dict[@"shopFeeMonth"] = @(20);
        self.dict[@"rantalFeeMonth"] = @(20);
        self.dict[@"otherFeeMonth"] = @(20);
//        [self.dict addEntriesFromDictionary:@{@"shopFeeMonth":@(20)}];
//        [self.dict addEntriesFromDictionary:@{@"rantalFeeMonth":@(20)}];
//        [self.dict addEntriesFromDictionary:@{@"otherFeeMonth":@(20)}];

        //network
        self.dict[@"otherFeeMonth"] = @(0);
    }
    return self;
}


@end
